Post

Replies

Boosts

Views

Activity

Reply to "FoundationModels GenerationError error 2" on iOS 26 beta 3
It is ridiculously restrictive. As it is, it's unusable in any real-world scenario. What here is dangerous? instructions: """ Read the user's input and tag it with the most relevant manifestation method from the list below. Use intent, topic, tone, or keywords in the input to choose the best match. Return only the method name listed in the right-hand column. Tag Mapping: “369 Manifestation” → manifest369method User Input: """
Jul ’25
Reply to Where to get 5.5 inch iPhone screenshots for submission
For anyone coming in 2024, I found this helpful. You do have to add the simulator runtime as suggested, but that's not enough to add it as a run destination. For that, you need to: Came here to add something important. I experienced this problem in Xcode 15.4 - wasn't able to select iPhone 8 Pro as a simulator destination because it didn't appear in the list. In order to get it to show in the selectable list, you have to set the 'Minimum Deployments' target to 16.4 or 15.0 for iPhone 8 Plus.
Aug ’24
Reply to How does a timeline select which date to display?
One is that you aren’t actually providing all the timeline entries you think you are. That was my first thought, but I triple checked. There were entries for everyday of the week on the timeline, but on Tuesday it was displaying the entry for Monday. It was only when I deleted the Monday entry that it displayed Tuesday. I display the full date in the widget for debugging purposes, and it is indeed Monday. I "fixed" it by just looking at the current date and time when displaying my small day widget, regardless of the passed in value. f you want it to show correctly you need to make sure the time is zeroed out to midnight For your entries. Sorry, I don't understand what that means. Entries are Mon-Fri at 3PM, for example. thanks
Topic: App & System Services SubTopic: General Tags:
Dec ’23
Reply to Get queue and current item from ApplicationMusicPlayer?
This is how I did it in a class, not in a view: var queueObserver: AnyCancellable? let musicPlayer = ApplicationMusicPlayer.shared if queueObserver == nil { queueObserver = musicPlayer.queue.objectWillChange .sink { [weak self] in self?.queueDidChange() } } return musicPlayer } private func queueDidChange() { // When we get this event, the song hasn't actually changed yet so we try a little later. DispatchQueue.main.asyncAfter(deadline: .now() + 2.0, execute: { NowPlaying.shared.setSong(self.musicPlayer.queue.currentEntry?.title ?? "Unknown") }) }
Topic: Media Technologies SubTopic: General Tags:
Aug ’23
Reply to Change the Volume for ApplicationMusicPlayer to hear the voice synthesizer?
The answer was to set the audio session to duckmode. Before using the speech synthesizer I set the session to duck mode and then I set it back to mixed mode after. This causes music played through musickit to lower in volume. It doesn't work with AVAudioPlayer, so for music I play through AVAudioPlayer I still have to lower the volume while the synthesizer is playing. It also doesn't work well when musickit is playing, the synthezier is playing, and there's a sound effect playing through AvAudioPlayer. There's no way for the session to be configured correctly. func setDuckMode() { do { try AVAudioSession.sharedInstance().setActive(false) try AVAudioSession.sharedInstance().setCategory( .playback, mode: .default, options: [.duckOthers]) try AVAudioSession.sharedInstance().setActive(true) } catch { print( "Could not init sound duck. \(error)") } }
Topic: Media Technologies SubTopic: General Tags:
Aug ’23
Reply to Xcode 14: Publishing changes from within view updates
This problem is still occurring in Xcode Version 14.0.1 (14A400). The context is a button that's pressed to exit a view that is controlled with:   .fullScreenCover(isPresented: $settings.showWorkout) Wrapping it in DispatchQueue.main.asyncAfter made no difference. I honestly have no idea what's wrong with this or how it can be done differently. It doesn't seem to cause any harm. Will an app be rejected with these kinds of warnings?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Foundation Models performance reality check - anyone else finding it slow?
Could you describe the steps you took to optimize the schema? I've found that asking ChatGPT to take a prompt I'd use for it and then optimize it for a three billion-parameter on-device LLM works well. It does a much better job at prompt engineering than I do.
Replies
Boosts
Views
Activity
Jul ’25
Reply to "FoundationModels GenerationError error 2" on iOS 26 beta 3
It is ridiculously restrictive. As it is, it's unusable in any real-world scenario. What here is dangerous? instructions: """ Read the user's input and tag it with the most relevant manifestation method from the list below. Use intent, topic, tone, or keywords in the input to choose the best match. Return only the method name listed in the right-hand column. Tag Mapping: “369 Manifestation” → manifest369method User Input: """
Replies
Boosts
Views
Activity
Jul ’25
Reply to In-App purchase: Submit for Review disabled! Please help!
Editing the app store localisation cause the submit button to light up again for me.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Universal links with different team ID and app ID prefix
For days universal links did not work for me. I noticed in Settings -> Developer -> Universal Links -> Diagnostics -> URL that when I entered my link, it validated, but returned an ID different than my team ID. Why, I don't know. But when I changed the id in .well-known/apple-app-site-association to this id, the links immediately worked.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Where to get 5.5 inch iPhone screenshots for submission
For anyone coming in 2024, I found this helpful. You do have to add the simulator runtime as suggested, but that's not enough to add it as a run destination. For that, you need to: Came here to add something important. I experienced this problem in Xcode 15.4 - wasn't able to select iPhone 8 Pro as a simulator destination because it didn't appear in the list. In order to get it to show in the selectable list, you have to set the 'Minimum Deployments' target to 16.4 or 15.0 for iPhone 8 Plus.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Selecting which data models sync with iCloud SwiftData
I'm getting this same thing now with SwiftData. It just popped up out of nowhere. I've deleted the app several times. I've deleted derived data several times and rebooted. Just adding a name to the config didn't help. Nothing has fixed it. Any other ideas on what to do?
Replies
Boosts
Views
Activity
Jul ’24
Reply to Xcode 15.0 Release doesn't connect at all iOS 17
After trying all the suggestions multiple times, none worked. It's like with the VPN on it doesn't even see the phone. I use Nord VPN. I haven't tried another VPN. But turning the VPN off makes it work again every time.
Replies
Boosts
Views
Activity
Mar ’24
Reply to How does a timeline select which date to display?
One is that you aren’t actually providing all the timeline entries you think you are. That was my first thought, but I triple checked. There were entries for everyday of the week on the timeline, but on Tuesday it was displaying the entry for Monday. It was only when I deleted the Monday entry that it displayed Tuesday. I display the full date in the widget for debugging purposes, and it is indeed Monday. I "fixed" it by just looking at the current date and time when displaying my small day widget, regardless of the passed in value. f you want it to show correctly you need to make sure the time is zeroed out to midnight For your entries. Sorry, I don't understand what that means. Entries are Mon-Fri at 3PM, for example. thanks
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Why is it that starting from iOS 17.2 and ios 17.3, xcode has been unable to connect and they have all been updated to the latest version?
I get that quite a lot. Try turning off your vpn. Also, deleting and reinstalling the app seems to help.
Replies
Boosts
Views
Activity
Dec ’23
Reply to AVSpeechSynthesizer is broken on iOS 17 in Xcode 15
Does not appear to be fixed in the simulator.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Get queue and current item from ApplicationMusicPlayer?
This is how I did it in a class, not in a view: var queueObserver: AnyCancellable? let musicPlayer = ApplicationMusicPlayer.shared if queueObserver == nil { queueObserver = musicPlayer.queue.objectWillChange .sink { [weak self] in self?.queueDidChange() } } return musicPlayer } private func queueDidChange() { // When we get this event, the song hasn't actually changed yet so we try a little later. DispatchQueue.main.asyncAfter(deadline: .now() + 2.0, execute: { NowPlaying.shared.setSong(self.musicPlayer.queue.currentEntry?.title ?? "Unknown") }) }
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to Change the Volume for ApplicationMusicPlayer to hear the voice synthesizer?
The answer was to set the audio session to duckmode. Before using the speech synthesizer I set the session to duck mode and then I set it back to mixed mode after. This causes music played through musickit to lower in volume. It doesn't work with AVAudioPlayer, so for music I play through AVAudioPlayer I still have to lower the volume while the synthesizer is playing. It also doesn't work well when musickit is playing, the synthezier is playing, and there's a sound effect playing through AvAudioPlayer. There's no way for the session to be configured correctly. func setDuckMode() { do { try AVAudioSession.sharedInstance().setActive(false) try AVAudioSession.sharedInstance().setCategory( .playback, mode: .default, options: [.duckOthers]) try AVAudioSession.sharedInstance().setActive(true) } catch { print( "Could not init sound duck. \(error)") } }
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to Xcode does not recognize iphone
For me, it was the cable. I tried a different cable, and it worked.
Replies
Boosts
Views
Activity
Dec ’22
Reply to Xcode 14: Publishing changes from within view updates
This problem is still occurring in Xcode Version 14.0.1 (14A400). The context is a button that's pressed to exit a view that is controlled with:   .fullScreenCover(isPresented: $settings.showWorkout) Wrapping it in DispatchQueue.main.asyncAfter made no difference. I honestly have no idea what's wrong with this or how it can be done differently. It doesn't seem to cause any harm. Will an app be rejected with these kinds of warnings?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode doesn't support iOS 14.5.1
It looks like catilina support is dropped for 14.5?
Replies
Boosts
Views
Activity
May ’21